package com.carryGo.entity;

/**
 * ClassName:Business
 * package:com.carryGo.entity
 * Description:
 *
 * @Date:2020/8/28 13:55
 * @Author: tank_黄志凌
 */
public class Business {
    private int id;//编号
    private String reference;//订单号
    private String commName;//商品名
    private String userName;//收货人
    private int number;//数量
    private double sum;//总价
    private String address;//收货地址

    public Business() {
    }

    public Business(String reference, String commName, String userName, int number, double sum, String address) {
        this.reference = reference;
        this.commName = commName;
        this.userName = userName;
        this.number = number;
        this.sum = sum;
        this.address = address;
    }

    public Business(int id, String reference, String commName, String userName, int number, double sum, String address) {
        this.id = id;
        this.reference = reference;
        this.commName = commName;
        this.userName = userName;
        this.number = number;
        this.sum = sum;
        this.address = address;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getReference() {
        return reference;
    }

    public void setReference(String reference) {
        this.reference = reference;
    }

    public String getCommName() {
        return commName;
    }

    public void setCommName(String commName) {
        this.commName = commName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public double getSum() {
        return sum;
    }

    public void setSum(double sum) {
        this.sum = sum;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Business{" +
                "id=" + id +
                ", reference='" + reference + '\'' +
                ", commName='" + commName + '\'' +
                ", userName='" + userName + '\'' +
                ", number='" + number + '\'' +
                ", sum='" + sum + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
